﻿
$(document).ready(function () {

    var settings = {
        url: postUrl,
        method: "POST",
        allowedTypes: "jpg,png,gif,doc,pdf,zip",
        fileName: "myfile",
        multiple: true,
        onSuccess: function (files, data, xhr) {
            $("#status").html("<font color='green'>Upload is success</font>");
            $("#HiddenImagesJson").val($("#HiddenImagesJson").val() + ';;' + data);
        },
        onError: function (files, status, errMsg) {
            $("#status").html("<font color='red'>Upload is Failed</font>");
        }
    }
    $("#mulitplefileuploader").uploadFile(settings);

});